package edu.sias.hyznxfapi.controller;


import edu.sias.hyznxfapi.chat.imageGen.MyUtil;
import edu.sias.hyznxfapi.vo.ImageVo;
import org.springframework.web.bind.annotation.*;

/**
 * 图片生成
 */
@RestController
@RequestMapping("/xfapi/imageCreate")
public class ImageCreateController {
    //传输过来一句话，让他生成
    @GetMapping()
    public String upload(@RequestBody ImageVo request) {
        String url = MyUtil.imageCreate(request.getStr(),null);
        return url;
    }
}
